//
//  DNCryingDao.h
//  DanoneEA
//
//  Created by 3ti_Jery on 16/10/19.
//  Copyright © 2016年 翔傲科技. All rights reserved.
//

#import "DNDataBase.h"
#import "DNCryingModel.h"

@interface DNCryingDao : DNDataBase

+ (NSString *) getCreateSQL;

+ (NSString *) getInsertSQL;

/**
 *  add
 *
 */
- (BOOL)saveCryingModel:(DNCryingModel *) object;
- (BOOL)saveCryingModelWithArray:(NSArray *)objectList;

/**
 *  delete
 *
 */
- (BOOL)deleteCryingModelByAppId:(NSString *)appId;

/**
 *  update
 *
 */
- (BOOL)updateCryingModel:(DNCryingModel *)object;

- (BOOL)updateCryingModelByAppId:(NSString *)appId;

- (BOOL)iSOverlapInDBCurrentCryingModel:(DNCryingModel *)object;

/**
 *  check
 *
 */
- (DNCryingModel *)getObjectModelByAppId:(NSString *)appId;

- (NSMutableArray *)getAllObjectModelNotSynchronized;

- (NSMutableArray *)getAppDisplayObjectModel;


@end
